<div id="submenu">
<?php
	$subpages = array("Crop Info"=>"insert_cropinfo.php", "Harvest"=>"insert_harvest.php","Sales"=>"insert_sales.php", "Donation"=>"insert_donation.php");
	
	
?>

			<ul>
			<?php
			
			foreach($subpages as $pagename => $pageURL){
				if ($thissubpage == $pagename){
					print("<li class=\"current_page_item\"><a href=\"$pageURL\">$pagename</a></li>\n");
				}else{
					print("<li><a href=\"$pageURL\">$pagename</a></li>\n");
				}
			}
			
			?>
			</ul>
			
</div>
